package com.etc.back;

import com.baidu.aip.face.AipFace;
import org.json.JSONObject;

import java.util.HashMap;

public class Sample {
    //设置APPID/AK/SK
    public static final String APP_ID = "20546200   ";
    public static final String API_KEY = "XsKlpW0Gkrig51hoxNceTQyc";
    public static final String SECRET_KEY = "RycAwKdPMVE7xRhA7h6jDdyAlIRITYE9";

    public static void main(String[] args) {

        // 传入可选参数调用接口
        HashMap<String, String> options = new HashMap<String, String>();
        options.put("face_field", "age");
        options.put("max_face_num", "2");
        options.put("face_type", "LIVE");
        options.put("liveness_control", "LOW");

        // 初始化一个AipFace
        AipFace client = new AipFace(APP_ID, API_KEY, SECRET_KEY);

        // 可选：设置网络连接参数
        client.setConnectionTimeoutInMillis(2000);
        client.setSocketTimeoutInMillis(60000);

        // 可选：设置代理服务器地址, http和socket二选一，或者均不设置
//        client.setHttpProxy("proxy_host", proxy_port);  // 设置http代理
//        client.setSocketProxy("proxy_host", proxy_port);  // 设置socket代理

        // 调用接口
//        String image = "";
//        String image = "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1592907919029&di=e1a588ba25401fa9769a1351d4a880f7&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201901%2F12%2F20190112102316_bxogs.jpg";
        String image = "/9j/4AAQSkZJRgABAgAAAQABAAD//gAhbGliZmZtcGVnLTMuMi4yLTEwNzEtZzI0MzVlYWQzAP/bAEMACAQEBAQEBQUFBQUFBgYGBgYGBgYGBgYGBgcHBwgICAcHBwYGBwcICAgICQkJCAgICAkJCgoKDAwLCw4ODhERFP/EAaIAAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKCwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5e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Ru2pEGRShRxSqBTEtRDwvJqsx+c1Ym6VWb7340hNjk69adIQIz9KanD/hSXRIt5P900pbMqJT0g+bNM+eA2M+9Q6pMs2uW9rjdsgM0h7Y3fKPxIqbw1zaSsepmb+dV50U65cvj5mSGPPfaMnA/E1mtDeC9+fo0vmXoyZWyflUdKllfcoUDgUzoqj0FFZ1sRKXurRfid2Cy6lS5alS1SW6X2V/mwHSiiiszrshR0ooFFAwooooAKKKKAP//Z";
        String imageType = "BASE64";
    
        // 人脸检测
        JSONObject res = client.detect(image, imageType, options);
        System.out.println(res.toString(2));
        
    }
}